package org.jeecg.modules.health_code.entity.request.bo;

import java.io.Serializable;
import java.util.List;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(description = "绑卡请求对象")
public class BindRequest implements Serializable
{   
    private static final long serialVersionUID = 4766409954018940686L;

    @ApiModelProperty(value = "电子健康卡ID")
    @NotBlank(message = "电子健康卡ID不能为空")
    private String vuid;
    
    @ApiModelProperty(value = "操作类型")
    @NotBlank(message = "操作类型不能为空")
    private String optType;
    
    @Valid
    @ApiModelProperty(value = "卡信息")
    @NotNull(message = "卡信息不能为空")
    private List<CardRequest> cardList;
    
}
